import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/css/global.css'
import './assets/font/iconfont.css'
import './assets/css/font-awesome.min.css'
import './assets/css/iccard.css'
import './assets/css/warning-icon.css'
import ElementUi from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios'
import request from './utils/request'

// 引入 mock 数据
import './mock'

// 设置全局默认的baseURL，修复9272端口错误
axios.defaults.baseURL = 'http://localhost:9271'

// 将自定义的axios实例添加到Vue原型中
Vue.prototype.$request = request
Vue.prototype.$axios = axios

Vue.use(ElementUi)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
